package com.dbz.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dbz.entity.ShenPi;
import org.apache.ibatis.annotations.Param;

import javax.validation.constraints.Max;
import java.util.List;

public interface ShenPiDao extends BaseMapper<ShenPi> {
    /**
     * 批量插入
     * @param list
     * @return
     */
    public int insertshenpi(List<Object>list);

    /**
     * 查询近两天同意的审批
     * @return
     */
    public List<ShenPi>shenpilistdt();

    /**
     * 同意审批
     * @param
     * @param
     * @return
     */
    public int updateshenpi(@Param("spid") String spid,@Param("username") String userName);


    /**
     * 不同意审批
     * @param
     * @param
     * @return
     */
    public int noupdateshenpi(@Param("spid") String spid,@Param("username") String userName);
}
